import request from "./../utils/request.js";

/**
 * 查询 开票列表
 */
export function queryInvoiceList(data) {
  return request.post('person.invoice.list', data, { noAuth : true });
}

/**
 * 查询 历史开票金额
 */
export function queryInvoicecount(data) {
  return request.post('person.invoice.count', data, { noAuth: true });
}

/**
 * 查询 地址
 */
export function queryAddressinfo(id) {
  const data = {
    'id': id
  }
  return request.post('person.invoiceaddress.info', data, { noAuth : true });
}


export function queryinfo(id) {
  const data = {
    'id': id
  }
  return request.post('person.invoice.info', data, { noAuth: true });
}

/**
 * 提交开票
 */
export function addInvoice(data) {
  return request.post('person.invoice.save', data, { noAuth : true });
}
/**
 * 修改开票
 */


export function upAddress(data) {
  return request.post('person.invoiceaddress.update', data, { noAuth: true });
}